<extend name="public:base" />

<block name="body">

<include file="public/bread" menu="organize_index" title="{:lang('Organize update')}" />

<div id="page-wrapper">
    <div class="page-header">{:lang($og_id>0?'Edit':'Add')}{:lang('Organize')}</div>
    <div class="page-content">
        <form method="post" class="page-form" action="" enctype="multipart/form-data">
            <div class="form-row">
                <div class="form-group col">
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">{:lang('Organize Name')}</span>
                        </div>
                        <input type="text" name="og_name" class="form-control" value="{$organize.og_name}" placeholder="输入组织名称"/>
                    </div>
                </div>
                <div class="form-group col">
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">{:lang('Parent ID')}</span>
                        </div>
                        <input type="text" name="master" class="form-control" value="{$organize.master}" placeholder="输入组织的父级ID"/>
                    </div>
                </div>
            </div>
            
            <div class="form-group submit-btn">
                <input type="hidden" name="og_id" value="{$organize.og_id}">
                <button type="submit" class="btn btn-primary">{:lang($og_id>0?'Save':'Add')}</button>
            </div>
        </form>
    </div>

</div>

</block>